package com.ap.generator.messageheader;

import static com.ap.datagen.core.GeneratorHelper.randomGeneratorFromEnum;
import static com.ap.datagen.core.Nullable.nullable;
import static com.ap.datagen.date.JodaLocalDateTimeGeneratorBuilder.jodaLocalDateTimeGeneratorBuilder;
import static com.ap.datagen.lang.StringRandomGeneratorBuilder.stringRandomGeneratorBuilder;

import com.ap.core.cxf.jaxb.managepayment.AbstractConfirmPaymentMsgHdrTypeGeneratorBuilder;
import com.ap.core.cxf.jaxb.managepayment.ConfirmPaymentMsgType;

/**
 *
 */
public class ConfirmPaymentMsgHdrTypeGeneratorBuilder extends AbstractConfirmPaymentMsgHdrTypeGeneratorBuilder{
    @Override
    public void setupDefaults() {
        this.msgIdGenerator = nullable(stringRandomGeneratorBuilder().length(16).build());
        this.msgTimestampGenerator = nullable(jodaLocalDateTimeGeneratorBuilder().build());
        this.msgTypeGenerator = nullable(randomGeneratorFromEnum((ConfirmPaymentMsgType.CONFIRMPAYMENT)));
    }

    public static ConfirmPaymentMsgHdrTypeGeneratorBuilder msgHdrTypeGenerator() {
        return new ConfirmPaymentMsgHdrTypeGeneratorBuilder();
    }
       
}
